#ifndef ROTATIONIMAGESETTINGSFORM_H
#define ROTATIONIMAGESETTINGSFORM_H

#include <QWidget>

namespace Ui {
class RotationImageSettingsForm;
}

class RotationImageSettingsForm : public QWidget
{
    Q_OBJECT

public:
    explicit RotationImageSettingsForm(QWidget *parent = nullptr);
    ~RotationImageSettingsForm();

    // 设置旋转角度
    void setRotationAngle(int angle);

    // 获取旋转角度
    int rotationAngle() const;

 signals:
    // 当设置改变时发出信号
    void settingsChanged();

private slots:
    // 旋转角度滑块值改变槽函数
    void on_rotationAngleSlider_valueChanged(int value);

    // 旋转角度输入框值改变槽函数
    void on_rotationAngleSpinBox_valueChanged(int arg1);

private:
    Ui::RotationImageSettingsForm *ui;
    int m_rotationAngle;
};

#endif // ROTATIONIMAGESETTINGSFORM_H